package com.example.demo.jpa;

import com.example.demo.entity.UserEntity;
import java.io.Serializable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author rqian
 */
public interface UserJpa extends JpaRepository<UserEntity, Long>, JpaSpecificationExecutor<UserEntity>, Serializable {
    /**
     * find user entity by username.
     *
     * @param username
     *         username
     * @return user entity.
     */
    UserEntity findUserEntityByUsername(String username);
}
